//
// Created by lenovo on 24-12-28.
//
class Solution
{
public:
    static int singleNumber(vector<int>& nums)
    {
        int ret = 0;
        size_t n = nums.size();

        for(int i=0; i<n; i++)
        {
            ret = ret ^ nums[i];
        }
        return ret;
    }
};